//地址信息接口
import axios from "../utils/axios";

//查看所有地址信息
export function lookAllAddresses() {
    return axios.get("/address");
}

//条件查找地址
export function lookAddressesByCondition(address) {
    return axios.post("/address/con", address);
}

//新增一条地址信息
export function insertOneAddress(address) {
    return axios.post("/address", address);
}

//修改一条地址信息
export function updateOneAddress(address) {
    return axios.put("/address", address);
}

//删除地址信息
export function deleteAddress(ids) {
    return axios({
        url: "/address",
        method: "DELETE",
        data: ids,
    });
}
